package com.lu.integrate.message.center.model.request;

import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import com.lu.integrate.message.center.model.enums.MessageQueueTypeEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author zhanglu
 * @project lu-cloud-stack
 * @description 消息队列中心-生产处理
 * @date 2023/2/13 17:55
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Accessors(chain = true)
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
public class MessageCenterQueueProduceRequest {

    /**
     * 消息队列的实现方式
     */
    @NotNull(message = "请输入消息队列的实现方式")
    private MessageQueueTypeEnum type;
    /**
     * 消息
     */
    @NotEmpty(message = "请输入消息")
    private String message;
    /**
     * 主题
     */
    @NotEmpty(message = "请输入主题")
    private String topic;
    /**
     * 处理类
     */
    @NotEmpty(message = "请输入处理类")
    private String className;
    /**
     * 处理方法
     */
    @NotEmpty(message = "请输入处理方法")
    private String methodName;
    
}
